package com.heking.widgetlib;

import androidx.appcompat.app.AppCompatActivity;

import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.Bundle;

import com.zhoug.common.utils.BitmapUtils;
import com.zhoug.widget.alhpa.AlphaImageButton;

public class AlphaViewActivity extends AppCompatActivity {
    private AlphaImageButton mAlphaImageButton;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_alpha_view);

        findViews();

        Bitmap bitmap = BitmapFactory.decodeResource(getResources(), R.drawable.icon_firm_5_gjtz);
        mAlphaImageButton.setImageBitmap(BitmapUtils.toRoundBitmap(bitmap));
    }

    private void findViews() {
        mAlphaImageButton = findViewById(R.id.alphaImageButton);
    }
}